package vn.fpt.fsoft.autotest.trustdistrictDAO;

import static org.junit.Assert.*;

import org.junit.Test;

import vn.fpt.fsoft.autotest.database.DBWithNoRow;
import vn.fpt.fsoft.autotest.database.TrustDistrictDB;
import vn.fpt.fsoft.dao.TrustDistrictDAO;

public class GetTrustDistTrictByID {
    
    @Test
    public void test1() {
        TrustDistrictDB.CreateData();
        assertNotNull(TrustDistrictDAO.getDistrictById(0));
    }
    
    @Test
    public void test2(){
        TrustDistrictDB.CreateData();
        assertNotNull(TrustDistrictDAO.getDistrictById(3));
    }
    
    @Test
    public void test3(){      
            DBWithNoRow.CreateData();
            assertNull(TrustDistrictDAO.getDistrictById(1));
    }
    
}
